<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.lmpop.trade.ti_payment.Ti_paymentInfo" %>

<%
 
 	request.setCharacterEncoding("utf-8");

	
	Ti_paymentInfo  ti_paymentInfo =  new Ti_paymentInfo();
   
	List plist = ti_paymentInfo.getEnabledPayment();	
   
   //out.print("--------==="+plist);

   %>

<html>

    <head>
        <meta http-equiv="x-ua-compatible" content="ie=7" />
        <title>more college</title>
        <script type="text/javascript" src="/js/commen.js"></script>
        <link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
        <script src="js_link.js" type="text/javascript"></script>
    </head>

    <body>
    
			<div style="width:600px;">
		   <table width="100%" cellpadding="1" cellspacing="1" class="listtab" border="0">
				<tr>
					<th width="5%" align="center"></th>
					<th>支付名称</th>
			  	<th>支付简介</th>
				</tr>
				<% 
		     int listsize=0;
		     if(plist!=null && plist.size()>0){
		        listsize =  plist.size();     
		        for(int i = 0;i < listsize;i++){ 
		        Hashtable pMap =(Hashtable)plist.get(i);
		        String pay_id="",pay_code="",pay_name="",pay_desc="";
		        if (pMap.get("pay_id") != null){
							pay_id = pMap.get("pay_id").toString();
						}
						if (pMap.get("pay_name") != null){
							pay_name = pMap.get("pay_name").toString();
						}
						if (pMap.get("pay_desc") != null){
							pay_desc = pMap.get("pay_desc").toString();
              if(pay_desc.length()>35)
              {
		             pay_desc = pay_desc.substring(0,35);				  
						  }
						
						}
				 	%>		
				<tr>
					<td width="5%" align="center">
						<input type="radio" name="checkpay" id="checkone<%=i%>" value="<%=pay_id%>" />
						<input type="hidden" name="checkName" id="checkName<%=i%>" value="<%=pay_name%>" />
					</td>
					<td><%=pay_name%></td>
			  	<td><%=pay_desc%></td>
			 </tr>
				<%
		   			}	  
			  	}
			  %>  
			</table> 
			</div>
			<br/>
			
			
			<div style="text-align:center;">
			<input type="button" class="buttoncss" value="确定" onclick="showAjaxOpr();">
      <input type="hidden" name="listsize" id="listsize" value="<%=listsize%>">
      <input type="hidden" name="type" id="type" value="py">
     
       </div> 
    </body>
	  </html>
